# @author zfd
# @date 2022年12月14日 13:54
# @desc 通过类存学生信息

class Student:
    def __init__(self, name, age, gender, score):
        self.name = name
        self.age = age
        self.gender = gender
        self.score = score

    def __str__(self):
        return f"name: {self.name}, age: {self.age}, gender: {self.gender}, score: {self.score}"


if __name__ == '__main__':
    students = []
    for i in range(0, 5):
        name = input("Enter name: ")
        age = int(input("Enter age: "))
        gender = input("Enter gender: ")
        score = int(input("Enter score: "))
        student = Student(name, age, gender, score)
        students.append(student)
    for student in students:
        print(student)
